<?php
/**
 * Created by PhpStorm.
 * User: white
 * Date: 2020/5/13
 * Time: 10:56
 */

namespace app\common\validate;

use think\Validate;

class Life extends Validate
{
    protected $rule = [
        'img|游学体验照片' => 'require|image',
        'title|标题' => 'require',
        'author|作者' => 'require',
        'content|游学体验简介' => 'require'
    ];

    //验证场景
    protected $scene = [
      'edit' => ['img' => 'require','title','author','content']
    ];
}